<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page
	language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<jsp:include page="../defaults/tagHeadContent.jsp" />
</head>
<body>

	<jsp:include page="../defaults/header.jsp" />
	<div id="wrapper">
		<div id="content">
			<jsp:include page="../defaults/sidebar.jsp" />

			<div id="list">
				<form id="userInfo" action="<c:url value="/task/info"/>"
					method="POST">
					<fieldset>
						<legend>Informações sobre a tarefa</legend>
						<label for="id">ID:</label> <input id="id" type="text"
							name="task.id" value="${task.id }" readonly="readonly"><br />
						<label for="name">Nome:</label> <input id="name" type="text"
							name="task.name" value="${task.name }"
							<c:if test="${!webUser.administrator}"> readonly="readonly" </c:if> />
						<br /> <label for="description">Descrição:</label> <input
							id="description" type="text" name="task.description"
							value="${task.description }"
							<c:if test="${!webUser.administrator}"> readonly="readonly" </c:if> />
						<br /> <label for="usersInChargeView">Responsáveis:</label> <select
							id="login" name="user.login" style="width: 158px;">
							<c:forEach items="${task.usersInCharge}" var="user">
								<option id="login" value="${user.login}">${user.login }</option>
							</c:forEach>
						</select> <br /> <label for="taskOwner">Dono:</label> <input
							id="taskOwner" type="text" name="taskOwner.login"
							value="${task.taskOwner.login }" readonly="readonly" /> <br />
						<label for="dueDate">Data de Entrega:</label> <input id="dueDate"
							type="text" name="task.duedate" value="${task.duedate }"
							<c:if test="${!isWebUserInChargeOfTask}"> readonly="readonly" </c:if> />
						<br /> <label for="Topics">Topicos:</label><br /> <input
							id="Computacao" type="checkbox" name="task.topic1" value="true"
							<c:if test="${!isWebUserInChargeOfTask}"> disabled="disabled" </c:if>
							<c:if test="${task.topic1}">checked</c:if> /> Computacao <br />
						<input id="Matematica" type="checkbox" name="task.topic2"
							value="true"
							<c:if test="${!isWebUserInChargeOfTask}"> disabled="disabled" </c:if>
							<c:if test="${task.topic2}">checked</c:if> /> Matematica <br />
						<input id="Estatistica" type="checkbox" name="task.topic3"
							value="true"
							<c:if test="${!isWebUserInChargeOfTask}"> disabled="disabled" </c:if>
							<c:if test="${task.topic3}">checked</c:if> /> Estatistica <br />

						<input id="Outro" type="checkbox" name="task.topic4" value="true"
							<c:if test="${!isWebUserInChargeOfTask}"> disabled="disabled" </c:if>
							<c:if test="${task.topic4}">checked</c:if> /> Outro <br />


						<button type="submit" name="_method" value="PUT">Editar</button>
					</fieldset>
				</form>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
	</div>

	<jsp:include page="../defaults/footer.jsp" />
</body>
</html>
